
/**
 * 打印2的n次幂，为0-19的整数
 * 
 * @author litong
 */
public class SecondPow {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String all = "";
		for (int i = 0; i < 20; i++) {
			String out = String.format("Math.pow(2,%d): %s \n", i, Math.pow(2, i));
			all += out;
		}
		System.out.print(all);
	}

	public void printAll(String all) {
		System.out.print(all);
	}
}
